/*
 * DiscoverySearchContact.java
 * business
 *
 * Created by chentao on 2017/4/21.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.main.discovery.search;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.interfaces.RefreshLayoutStateListener;

import java.util.List;

public interface DiscoverySearchContact {

    interface Presenter extends BasePresenter {

        void search(String keyword);

        void clearHistory();
    }

    interface View extends BaseView<Presenter>, RefreshLayoutStateListener {

        String getKeyword();

        void notifyDataSetChanged();

        void setItems(List<?> items);
    }

}
